package JSE_01.StringBuilder.demo01;

public class Demo02 {
    public static void main(String[] args) {
        StringBuilder str1=new StringBuilder();
        StringBuilder str2=str1.append(1);
        // append方法返回的是this,调用方法的对象是bu,所以this==bu
        System.out.println(str1==str2);
        System.out.println(str1);
        System.out.println(str2);
    }
}
